#include<iostream>
using namespace std;
int month[13] = { 0,31,30,31,30,31,30,31,31,30,31,30,31 };
int arr[110] = {};
int main()
{
	int cnt = 0;
	for (int i = 1; i <= 12; i++) {
		for (int j = 1; j <= month[i]; j++) {
			int a = i / 10;
			int b = i % 10;
			int c = j / 10;
			int d = j % 10;
			int ans = 2023 * 10000 + a * 1000 + b * 100 + c * 10 + d;
		}
	}
	cout << cnt << endl;
	return 0;
}